package org.apache.ibatis.demo.pojo;

import java.io.Serializable;
import java.util.Date;

public class Blog implements Serializable {

  private int id;
  private String username;
  private String context;
  private Date createTime;

  public Blog() {
  }

  public Blog(int id, String username, String context) {
    this();
    this.id = id;
    this.username = username;
    this.context = context;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getContext() {
    return context;
  }

  public void setContext(String context) {
    this.context = context;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  @Override
  public String toString() {
    return "Blog{" +
      "id=" + id +
      ", username='" + username + '\'' +
      ", context='" + context + '\'' +
      ", createTime=" + createTime +
      '}';
  }
}
